.class public abstract Lcom/estrongs/dlna/render/player/c;
.super Ljava/lang/Object;
.source "MediaPlayer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/dlna/render/player/c$b;
    }
.end annotation


# instance fields
.field private a:Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

.field private b:Lorg/teleal/cling/support/lastchange/LastChange;

.field private c:Lorg/teleal/cling/support/lastchange/LastChange;

.field private volatile d:Lorg/teleal/cling/support/model/TransportInfo;

.field private e:Lorg/teleal/cling/support/model/PositionInfo;

.field private f:Lorg/teleal/cling/support/model/MediaInfo;

.field private g:I

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Lcom/estrongs/dlna/render/player/a;


# direct methods
.method public constructor <init>(Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;Lorg/teleal/cling/support/lastchange/LastChange;Lorg/teleal/cling/support/lastchange/LastChange;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Lorg/teleal/cling/support/model/TransportInfo;

    invoke-direct {v0}, Lorg/teleal/cling/support/model/TransportInfo;-><init>()V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    .line 3
    new-instance v0, Lorg/teleal/cling/support/model/PositionInfo;

    invoke-direct {v0}, Lorg/teleal/cling/support/model/PositionInfo;-><init>()V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->e:Lorg/teleal/cling/support/model/PositionInfo;

    .line 4
    new-instance v0, Lorg/teleal/cling/support/model/MediaInfo;

    invoke-direct {v0}, Lorg/teleal/cling/support/model/MediaInfo;-><init>()V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    .line 6
    iput-object p1, p0, Lcom/estrongs/dlna/render/player/c;->a:Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    .line 7
    iput-object p2, p0, Lcom/estrongs/dlna/render/player/c;->b:Lorg/teleal/cling/support/lastchange/LastChange;

    .line 8
    iput-object p3, p0, Lcom/estrongs/dlna/render/player/c;->c:Lorg/teleal/cling/support/lastchange/LastChange;

    .line 9
    new-instance p1, Lcom/estrongs/dlna/render/player/c$b;

    invoke-direct {p1, p0, v0}, Lcom/estrongs/dlna/render/player/c$b;-><init>(Lcom/estrongs/dlna/render/player/c;Lcom/estrongs/dlna/render/player/c$a;)V

    iput-object p1, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/dlna/render/player/c;)Lcom/estrongs/dlna/render/player/a;
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/dlna/render/player/c;->u()Lcom/estrongs/dlna/render/player/a;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/dlna/render/player/c;Lorg/teleal/cling/support/model/PositionInfo;)Lorg/teleal/cling/support/model/PositionInfo;
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/dlna/render/player/c;->e:Lorg/teleal/cling/support/model/PositionInfo;

    return-object p1
.end method

.method static synthetic b(Lcom/estrongs/dlna/render/player/c;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/dlna/render/player/c;->g:I

    return p0
.end method

.method private u()Lcom/estrongs/dlna/render/player/a;
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->b()Lcom/estrongs/dlna/render/player/a;

    move-result-object v0

    return-object v0

    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method

.method private v()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->h()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/n10;->a(Ljava/lang/String;)Ljava/util/Map;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "is_es_device"

    .line 2
    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    iput-object v1, p0, Lcom/estrongs/dlna/render/player/c;->h:Ljava/lang/String;

    const-string v1, "device_udn"

    .line 3
    invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->i:Ljava/lang/String;

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 4
    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->h:Ljava/lang/String;

    .line 5
    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->i:Ljava/lang/String;

    :goto_0
    return-void
.end method


# virtual methods
.method public a()Lorg/teleal/cling/support/lastchange/LastChange;
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->b:Lorg/teleal/cling/support/lastchange/LastChange;

    return-object v0
.end method

.method public a(I)V
    .locals 3

    .line 9
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 10
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "seek position = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    int-to-long v1, p1

    invoke-interface {v0, v1, v2}, Lcom/estrongs/dlna/render/player/b;->a(J)V

    .line 12
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    int-to-long v1, p1

    invoke-interface {v0, v1, v2}, Lcom/estrongs/dlna/render/player/a;->a(J)V

    return-void
.end method

.method public declared-synchronized a(Ljava/net/URI;Ljava/lang/String;)V
    .locals 10

    monitor-enter p0

    .line 13
    :try_start_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "setURI = "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/net/URI;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 14
    :try_start_1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 15
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->a()V

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->s()V

    .line 17
    :cond_0
    invoke-virtual {p1}, Ljava/net/URI;->toString()Ljava/lang/String;

    move-result-object v6

    .line 18
    new-instance v0, Lorg/teleal/cling/support/model/TransportInfo;

    invoke-direct {v0}, Lorg/teleal/cling/support/model/TransportInfo;-><init>()V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    .line 19
    new-instance v7, Lorg/teleal/cling/support/model/MediaInfo;

    new-instance v3, Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    const-wide/16 v8, 0x1

    invoke-direct {v3, v8, v9}, Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;-><init>(J)V

    const-wide/16 v0, 0x0

    .line 20
    invoke-static {v0, v1}, Lorg/teleal/cling/model/ModelUtil;->toTimeString(J)Ljava/lang/String;

    move-result-object v4

    sget-object v5, Lorg/teleal/cling/support/model/StorageMedium;->NETWORK:Lorg/teleal/cling/support/model/StorageMedium;

    move-object v0, v7

    move-object v1, v6

    move-object v2, p2

    invoke-direct/range {v0 .. v5}, Lorg/teleal/cling/support/model/MediaInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;Ljava/lang/String;Lorg/teleal/cling/support/model/StorageMedium;)V

    iput-object v7, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    .line 21
    new-instance v0, Lorg/teleal/cling/support/model/PositionInfo;

    const-string v1, ""

    invoke-direct {v0, v8, v9, v1, v6}, Lorg/teleal/cling/support/model/PositionInfo;-><init>(JLjava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->e:Lorg/teleal/cling/support/model/PositionInfo;

    .line 22
    invoke-direct {p0}, Lcom/estrongs/dlna/render/player/c;->v()V

    .line 23
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->a()Lorg/teleal/cling/support/lastchange/LastChange;

    move-result-object v0

    .line 24
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->j()Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    move-result-object v1

    const/4 v2, 0x2

    new-array v2, v2, [Lorg/teleal/cling/support/lastchange/EventedValue;

    const/4 v3, 0x0

    new-instance v4, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$AVTransportURI;

    invoke-direct {v4, p1}, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$AVTransportURI;-><init>(Ljava/net/URI;)V

    aput-object v4, v2, v3

    const/4 v3, 0x1

    new-instance v4, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$CurrentTrackURI;

    invoke-direct {v4, p1}, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$CurrentTrackURI;-><init>(Ljava/net/URI;)V

    aput-object v4, v2, v3

    invoke-virtual {v0, v1, v2}, Lorg/teleal/cling/support/lastchange/LastChange;->setEventedValue(Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;[Lorg/teleal/cling/support/lastchange/EventedValue;)V

    .line 25
    sget-object p1, Lorg/teleal/cling/support/model/TransportState;->TRANSITIONING:Lorg/teleal/cling/support/model/TransportState;

    invoke-virtual {p0, p1}, Lcom/estrongs/dlna/render/player/c;->a(Lorg/teleal/cling/support/model/TransportState;)V

    .line 26
    iget-object p1, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    invoke-interface {p1, v6, p2}, Lcom/estrongs/dlna/render/player/a;->a(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 27
    :try_start_2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 28
    :goto_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method protected declared-synchronized a(Lorg/teleal/cling/support/model/TransportState;)V
    .locals 5

    monitor-enter p0

    .line 29
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    invoke-virtual {v0}, Lorg/teleal/cling/support/model/TransportInfo;->getCurrentTransportState()Lorg/teleal/cling/support/model/TransportState;

    move-result-object v0

    .line 30
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Current state is: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, ", changing to new state: "

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 31
    new-instance v0, Lorg/teleal/cling/support/model/TransportInfo;

    invoke-direct {v0, p1}, Lorg/teleal/cling/support/model/TransportInfo;-><init>(Lorg/teleal/cling/support/model/TransportState;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    .line 32
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->a()Lorg/teleal/cling/support/lastchange/LastChange;

    move-result-object v0

    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->j()Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    move-result-object v1

    const/4 v2, 0x2

    new-array v2, v2, [Lorg/teleal/cling/support/lastchange/EventedValue;

    const/4 v3, 0x0

    new-instance v4, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$TransportState;

    invoke-direct {v4, p1}, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$TransportState;-><init>(Lorg/teleal/cling/support/model/TransportState;)V

    aput-object v4, v2, v3

    const/4 p1, 0x1

    new-instance v3, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$CurrentTransportActions;

    .line 33
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->e()[Lorg/teleal/cling/support/model/TransportAction;

    move-result-object v4

    invoke-direct {v3, v4}, Lorg/teleal/cling/support/avtransport/lastchange/AVTransportVariable$CurrentTransportActions;-><init>([Lorg/teleal/cling/support/model/TransportAction;)V

    aput-object v3, v2, p1

    .line 34
    invoke-virtual {v0, v1, v2}, Lorg/teleal/cling/support/lastchange/LastChange;->setEventedValue(Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;[Lorg/teleal/cling/support/lastchange/EventedValue;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 35
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized a(Z)V
    .locals 1

    monitor-enter p0

    if-eqz p1, :cond_0

    .line 4
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->n()I

    move-result v0

    if-lez v0, :cond_0

    const/4 p1, 0x0

    .line 5
    invoke-virtual {p0, p1}, Lcom/estrongs/dlna/render/player/c;->b(I)V

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_0

    :cond_0
    if-nez p1, :cond_1

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->n()I

    move-result p1

    if-nez p1, :cond_1

    .line 7
    iget p1, p0, Lcom/estrongs/dlna/render/player/c;->g:I

    invoke-virtual {p0, p1}, Lcom/estrongs/dlna/render/player/c;->b(I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :goto_0
    monitor-exit p0

    throw p1

    .line 8
    :cond_1
    :goto_1
    monitor-exit p0

    return-void
.end method

.method public b()Ljava/lang/String;
    .locals 2

    .line 8
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->o()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->i:Ljava/lang/String;

    if-eqz v0, :cond_1

    .line 9
    invoke-static {}, Lcom/estrongs/dlna/core/b;->g()Lcom/estrongs/dlna/core/b;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/estrongs/dlna/core/b;->a(Ljava/lang/String;)Lorg/teleal/cling/model/meta/Device;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 10
    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/Device;->getDetails()Lorg/teleal/cling/model/meta/DeviceDetails;

    move-result-object v0

    invoke-virtual {v0}, Lorg/teleal/cling/model/meta/DeviceDetails;->getFriendlyName()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    const-string v0, "UNKNOWN"

    return-object v0

    .line 11
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->g()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public declared-synchronized b(I)V
    .locals 2

    monitor-enter p0

    .line 2
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->n()I

    move-result v0

    iput v0, p0, Lcom/estrongs/dlna/render/player/c;->g:I

    const/4 v0, 0x0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v1

    if-eqz v1, :cond_0

    int-to-float p1, p1

    const/high16 v0, 0x42c80000    # 100.0f

    div-float v0, p1, v0

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object p1

    invoke-interface {p1, v0}, Lcom/estrongs/dlna/render/player/b;->a(F)V

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    invoke-interface {p1, v0}, Lcom/estrongs/dlna/render/player/a;->a(F)V

    .line 6
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "setVolume volume = "

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Les/m10;->a(Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized c()Lorg/teleal/cling/support/model/MediaInfo;
    .locals 10

    monitor-enter p0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->l()I

    move-result v0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->i()I

    move-result v1

    .line 4
    iget-object v2, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    invoke-virtual {v2}, Lorg/teleal/cling/support/model/TransportInfo;->getCurrentTransportState()Lorg/teleal/cling/support/model/TransportState;

    move-result-object v2

    sget-object v3, Lorg/teleal/cling/support/model/TransportState;->PLAYING:Lorg/teleal/cling/support/model/TransportState;

    if-ne v2, v3, :cond_0

    if-lez v0, :cond_0

    .line 5
    new-instance v0, Lorg/teleal/cling/support/model/MediaInfo;

    iget-object v2, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    .line 6
    invoke-virtual {v2}, Lorg/teleal/cling/support/model/MediaInfo;->getCurrentURI()Ljava/lang/String;

    move-result-object v5

    const-string v6, ""

    new-instance v7, Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    const-wide/16 v2, 0x1

    invoke-direct {v7, v2, v3}, Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;-><init>(J)V

    div-int/lit16 v1, v1, 0x3e8

    int-to-long v1, v1

    .line 7
    invoke-static {v1, v2}, Lorg/teleal/cling/model/ModelUtil;->toTimeString(J)Ljava/lang/String;

    move-result-object v8

    sget-object v9, Lorg/teleal/cling/support/model/StorageMedium;->NETWORK:Lorg/teleal/cling/support/model/StorageMedium;

    move-object v4, v0

    invoke-direct/range {v4 .. v9}, Lorg/teleal/cling/support/model/MediaInfo;-><init>(Ljava/lang/String;Ljava/lang/String;Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;Ljava/lang/String;Lorg/teleal/cling/support/model/StorageMedium;)V

    iput-object v0, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized d()Lorg/teleal/cling/support/model/PositionInfo;
    .locals 10

    monitor-enter p0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->l()I

    move-result v0

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->i()I

    move-result v1

    .line 4
    new-instance v9, Lorg/teleal/cling/support/model/PositionInfo;

    const-wide/16 v3, 0x1

    div-int/lit16 v1, v1, 0x3e8

    int-to-long v1, v1

    invoke-static {v1, v2}, Lorg/teleal/cling/model/ModelUtil;->toTimeString(J)Ljava/lang/String;

    move-result-object v5

    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    .line 5
    invoke-virtual {v1}, Lorg/teleal/cling/support/model/MediaInfo;->getCurrentURI()Ljava/lang/String;

    move-result-object v6

    div-int/lit16 v1, v0, 0x3e8

    int-to-long v1, v1

    invoke-static {v1, v2}, Lorg/teleal/cling/model/ModelUtil;->toTimeString(J)Ljava/lang/String;

    move-result-object v7

    div-int/lit16 v0, v0, 0x3e8

    int-to-long v0, v0

    .line 6
    invoke-static {v0, v1}, Lorg/teleal/cling/model/ModelUtil;->toTimeString(J)Ljava/lang/String;

    move-result-object v8

    move-object v2, v9

    invoke-direct/range {v2 .. v8}, Lorg/teleal/cling/support/model/PositionInfo;-><init>(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    iput-object v9, p0, Lcom/estrongs/dlna/render/player/c;->e:Lorg/teleal/cling/support/model/PositionInfo;

    .line 7
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->e:Lorg/teleal/cling/support/model/PositionInfo;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized e()[Lorg/teleal/cling/support/model/TransportAction;
    .locals 6

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;

    invoke-virtual {v0}, Lorg/teleal/cling/support/model/TransportInfo;->getCurrentTransportState()Lorg/teleal/cling/support/model/TransportState;

    move-result-object v0

    .line 2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "getCurrentTransportActions "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Les/m10;->c(Ljava/lang/String;)V

    .line 3
    sget-object v1, Lcom/estrongs/dlna/render/player/c$a;->a:[I

    invoke-virtual {v0}, Ljava/lang/Enum;->ordinal()I

    move-result v0

    aget v0, v1, v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eq v0, v2, :cond_2

    const/4 v3, 0x3

    const/4 v4, 0x2

    if-eq v0, v4, :cond_1

    if-eq v0, v3, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    const/4 v0, 0x4

    new-array v0, v0, [Lorg/teleal/cling/support/model/TransportAction;

    .line 4
    sget-object v5, Lorg/teleal/cling/support/model/TransportAction;->Stop:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v5, v0, v1

    sget-object v1, Lorg/teleal/cling/support/model/TransportAction;->Pause:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v1, v0, v2

    sget-object v1, Lorg/teleal/cling/support/model/TransportAction;->Seek:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v1, v0, v4

    sget-object v1, Lorg/teleal/cling/support/model/TransportAction;->Play:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v1, v0, v3

    goto :goto_0

    :cond_1
    new-array v0, v3, [Lorg/teleal/cling/support/model/TransportAction;

    .line 5
    sget-object v3, Lorg/teleal/cling/support/model/TransportAction;->Stop:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v3, v0, v1

    sget-object v1, Lorg/teleal/cling/support/model/TransportAction;->Pause:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v1, v0, v2

    sget-object v1, Lorg/teleal/cling/support/model/TransportAction;->Seek:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v1, v0, v4

    goto :goto_0

    :cond_2
    new-array v0, v2, [Lorg/teleal/cling/support/model/TransportAction;

    .line 6
    sget-object v2, Lorg/teleal/cling/support/model/TransportAction;->Play:Lorg/teleal/cling/support/model/TransportAction;

    aput-object v2, v0, v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    :goto_0
    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized f()Lorg/teleal/cling/support/model/TransportInfo;
    .locals 1

    monitor-enter p0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->p()Z

    move-result v0

    if-nez v0, :cond_1

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->isActive()Z

    move-result v0

    if-nez v0, :cond_1

    .line 3
    :cond_0
    sget-object v0, Lorg/teleal/cling/support/model/TransportState;->STOPPED:Lorg/teleal/cling/support/model/TransportState;

    invoke-virtual {p0, v0}, Lcom/estrongs/dlna/render/player/c;->a(Lorg/teleal/cling/support/model/TransportState;)V

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->d:Lorg/teleal/cling/support/model/TransportInfo;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized g()Ljava/lang/String;
    .locals 2

    monitor-enter p0

    :try_start_0
    const-string v0, ""

    .line 1
    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    if-eqz v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    invoke-virtual {v0}, Lorg/teleal/cling/support/model/MediaInfo;->getCurrentURI()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :cond_0
    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public declared-synchronized h()Ljava/lang/String;
    .locals 2

    monitor-enter p0

    :try_start_0
    const-string v0, ""

    .line 1
    iget-object v1, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    if-eqz v1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->f:Lorg/teleal/cling/support/model/MediaInfo;

    invoke-virtual {v0}, Lorg/teleal/cling/support/model/MediaInfo;->getCurrentURIMetaData()Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 3
    :cond_0
    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public i()I
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->getDuration()J

    move-result-wide v0

    long-to-int v1, v0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method public j()Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->a:Lorg/teleal/cling/model/types/UnsignedIntegerFourBytes;

    return-object v0
.end method

.method public abstract k()Lcom/estrongs/dlna/render/player/b;
.end method

.method public l()I
    .locals 2

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->getCurrentPosition()J

    move-result-wide v0

    long-to-int v1, v0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method public m()Lorg/teleal/cling/support/lastchange/LastChange;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->c:Lorg/teleal/cling/support/lastchange/LastChange;

    return-object v0
.end method

.method public declared-synchronized n()I
    .locals 4

    monitor-enter p0

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->getVolume()F

    move-result v0

    const/high16 v1, 0x42c80000    # 100.0f

    mul-float v1, v1, v0

    float-to-int v1, v1

    .line 3
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "getVolume percentage = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;

    const-string v0, " volume = "

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/m10;->a(Ljava/lang/String;)V

    .line 4
    iget v0, p0, Lcom/estrongs/dlna/render/player/c;->g:I

    if-nez v0, :cond_0

    .line 5
    iput v1, p0, Lcom/estrongs/dlna/render/player/c;->g:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_0
    move v0, v1

    .line 6
    :cond_1
    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public o()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->h:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string v1, "1"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public abstract p()Z
.end method

.method public q()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v0, "pause"

    .line 2
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->pause()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->onPause()V

    return-void
.end method

.method public r()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v0, "play"

    .line 2
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->play()V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->onPlay()V

    return-void
.end method

.method public abstract s()V
.end method

.method public t()V
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v0, "stop"

    .line 2
    invoke-static {v0}, Les/m10;->c(Ljava/lang/String;)V

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->k()Lcom/estrongs/dlna/render/player/b;

    move-result-object v0

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/b;->a()V

    .line 4
    invoke-virtual {p0}, Lcom/estrongs/dlna/render/player/c;->s()V

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/estrongs/dlna/render/player/c;->j:Lcom/estrongs/dlna/render/player/a;

    invoke-interface {v0}, Lcom/estrongs/dlna/render/player/a;->a()V

    return-void
.end method
